import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { RouterModule, Routes } from "@angular/router";

import { InvalidConfigComponent } from "./config/invalid-config/invalid-config.component";
import { NoConfigComponent } from "./config/no-config/no-config.component";
import { ControlComponent } from "./control/control.component";
import { FilamentComponent } from "./filament/filament.component";
import { FilesComponent } from "./files/files.component";
import { MainScreenComponent } from "./main-screen/main-screen.component";
import { MainScreenNoTouchComponent } from "./main-screen/no-touch/main-screen-no-touch.component";
import { SettingsComponent } from "./settings/settings.component";
import { StandbyComponent } from "./standby/standby.component";

const routes: Routes = [
  {
    path: "main-screen",
    component: MainScreenComponent,
  },
  {
    path: "main-screen-no-touch",
    component: MainScreenNoTouchComponent,
  },
  {
    path: "control",
    component: ControlComponent,
  },
  {
    path: "filament",
    component: FilamentComponent,
  },
  {
    path: "files",
    component: FilesComponent,
  },
  {
    path: "invalid-config",
    component: InvalidConfigComponent,
  },
  {
    path: "no-config",
    component: NoConfigComponent,
  },
  {
    path: "settings",
    component: SettingsComponent,
  },
  {
    path: "standby",
    component: StandbyComponent,
  },
];

@NgModule({
  declarations: [],
  imports: [CommonModule, RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
